/**
 * 
 */
package vista.ventanas;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;


/**
 * @author De La
 * 
 */
public class VentanaPrincipal extends JFrame {

	public VentanaPrincipal() {
		super("J-Papa");
		setSize(800, 600);
		setResizable(false);
		setLocationRelativeTo(null);
		add( new PanelPrincipal() );
		addWindowListener( new windowsListener() );
		setVisible(true);
	}
	
	private class windowsListener extends WindowAdapter {
		public void windowClosing(WindowEvent e) {
			e.getWindow().dispose();
			System.exit(0);
		}
	}
	
}
